# 项目基础系统URL-测试环境变量
import math
import random


# 主网站URL
BASE_URL = "http://user-p2p-test.itheima.net/"

# 十位随机数(获取验证码要用到)
nums = str(math.floor(1e10 * random.random()))

# 开户响应的action值(因为是通用的，所以没有用方法来获取)
OAA_URL = "http://121.43.169.97:8000/muser/publicRequests"

Cookie = None
# 请求头数据
headers_data = {
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "JSESSIONID=EBB3270CC8A58CB8F45453E2BEE3E84F"  # 初始Cookie值，在scripts中的获取图片验证码的方法中有做赋值操作
}

value = None
# 开户响应体的name和value组成的字典，为第三方开户、充值、投资的请求体
account_data = {    # 以下键值都为初始键值，在scripts中的开户方法里有做赋值操作
    "Version": 10,
    "CmdId": "UserRegister",
    "MerCustId": "6000060007313892",
    "BgRetUrl": "https://www.baidu.com/",
    "RetUrl": "http://user-p2p-test.itheima.net/trust/chinapnr/register/return/21112121382877461503",
    "UsrId": "",
    "UsrName": "",
    "IdType": "00",
    "IdNo": "null",
    "UsrMp": "13881627340",
    "UsrEmail": "",
    "MerPriv": "21112121382877461503",
    "ChkValue": "-101",
    "CharSet": "GBK",
}
